package com.carskeeper.common.exception;

import com.carskeeper.common.dtos.AppHttpCodeEnum;
import io.swagger.models.auth.In;
import lombok.Data;

@Data
public class AcException extends RuntimeException {
    private Integer code;

    public AcException(AppHttpCodeEnum appHttpCodeEnum) {
        super(appHttpCodeEnum.getErrorMessage());
        this.code = appHttpCodeEnum.getCode();
    }
}
